<template>
    <div>
      <h1>体验状态机语法,{{count.num}}</h1>
      <n-button type="error" size="medium" @click="count.minus(2)">
        调用actions的minus方法
      </n-button>
      
      <!-- <CompB/> -->
      <RouterView/>
    </div>
</template>
  
  <script setup>
  import { useCount } from '../../store/count';
  import { useStar } from '../../store/star';
  import CompB from './CompB.vue';
  const count = useCount()
  const star = useStar()
  star.initStarList()
  </script>
  
  <style lang="scss" scoped>
  
  </style>